package simpackNew;

// Modified by Lucas
public class TOKEN {
    public double attr[];

    public double timeStamp;
    public double load;
    public User owner;
    
    public double preemptStartTime;

    public TOKEN() {
	attr = new double[Const.MAX_NUM_ATTR];
	preemptStartTime = 0.0;
    }

    /**
     * Creates a copy
     * */
    public TOKEN(TOKEN t) {
	int i;

	this.timeStamp = t.timeStamp;
	this.load = t.load;
	this.owner = t.owner;
	this.preemptStartTime = t.preemptStartTime;
	this.attr = new double[Const.MAX_NUM_ATTR];

	for (i = 0; i < Const.MAX_NUM_ATTR; i++)
	    this.attr[i] = t.attr[i];
    }
}